package com.biz.primus.ms.coupon.event.coupon;

import com.biz.primus.ms.base.event.LocalEvent;
import com.biz.primus.ms.coupon.dao.po.CouponType;
import com.biz.primus.ms.coupon.dao.ro.CouponRo;
import java.util.List;
import lombok.Getter;

/**
 * 创建优惠券事件
 *
 * @author david-liu
 */
@Getter
public class CreateCouponEvent extends LocalEvent {
    private static final long serialVersionUID = 7146061115824543416L;

    private List<CouponRo> couponRos;

    private CouponType couponType;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public CreateCouponEvent(Object source, List<CouponRo> couponRos, CouponType couponType) {
        super(source);
        this.couponRos = couponRos;
        this.couponType = couponType;
    }
}
